import java.util.Scanner;

/**
 * Created by 81052 on 2018/4/8.
 */
public class Dome01 {
    public static void main(String[] args) {
        System.out.println("输入");
        Scanner sc=new Scanner(System.in);
        String s=sc.nextLine();
        char []h=s.toCharArray();
        int n=h.length;
        for (int i=0;i<h[2];i++) {
            System.out.println(h[i]);
        }
        /*

        int m=(int)h[3];
        int k=h[3];
        char b=h[3];
        System.out.println(m);
        System.out.println(k);System.out.println(s);
        System.out.println(b);
        */
    }
}
